package com.fzy.core.system.action;

import com.fzy.core.entity.Page;
import com.fzy.core.system.service.DbService;
import com.fzy.core.system.service.MappingQuery;
import com.fzy.core.system.service.ModuleQuery;
import com.fzy.core.webwork.BaseAction;
import com.opensymphony.xwork.Preparable;

public class ModuleListAction extends BaseAction implements Preparable {

	private static final long serialVersionUID = 3697483172218417919L;
	Page page;
	ModuleQuery moduleQuery;
	DbService dbService;
	public void prepare() throws Exception {
		page = new Page();
		moduleQuery = new ModuleQuery();
	}
	public String execute() throws Exception {
		page = dbService.listModule(moduleQuery, page);
		return "dispatcher:/WEB-INF/jsp/core/system/module-list.jsp";
    }
	public Page getPage() {
		return page;
	}
	public void setDbService(DbService dbService) {
		this.dbService = dbService;
	}
	public ModuleQuery getModuleQuery() {
		return moduleQuery;
	}

}
